TEMPLATE = app
TARGET = DreamQQ2010
QT += xml \
    network \
    sql
CONFIG += qt \
    debug
DEPENDPATH += . \
    src \
    src/myqq \
    src/ui
INCLUDEPATH += . \
    src \
    src/myqq \
    src/ui
HEADERS += src/myqq/webqq.hpp \
    src/myqq/util.hpp \
    src/myqq/utf8.hpp \
    src/myqq/qun.hpp \
    src/myqq/qqsocket.hpp \
    src/myqq/qqpacket.hpp \
    src/myqq/qqdef.hpp \
    src/myqq/qqcrypt.hpp \
    src/myqq/qqconn.hpp \
    src/myqq/qqclient.hpp \
    src/myqq/protocol.hpp \
    src/myqq/packetmgr.hpp \
    src/myqq/md5.hpp \
    src/myqq/loop.hpp \
    src/myqq/group.hpp \
    src/myqq/debug.hpp \
    src/myqq/crc32.hpp \
    src/myqq/config.hpp \
    src/myqq/buddy.hpp \
    src/ui/about.h \
    src/ui/mainwindow.h \
    src/ui/login.h \
    src/ui/qclickedlabel.h \
    src/qtq_config.h \
    src/ui/buddychat.h \
    src/db.h \
    src/dbhelper.h \
    src/ui/verifycodedialog.h \
    src/myqq/PackageRecvThread.hpp
SOURCES += src/myqq/util.cpp \
    src/myqq/utf8.cpp \
    src/myqq/qun.cpp \
    src/myqq/qqsocket.cpp \
    src/myqq/qqpacket.cpp \
    src/myqq/qqcrypt.cpp \
    src/myqq/qqclient.cpp \
    src/myqq/protocol.cpp \
    src/myqq/prot_user.cpp \
    src/myqq/prot_qun.cpp \
    src/myqq/prot_misc.cpp \
    src/myqq/prot_login.cpp \
    src/myqq/prot_im.cpp \
    src/myqq/prot_group.cpp \
    src/myqq/prot_buddy.cpp \
    src/myqq/packetmgr.cpp \    
    src/myqq/md5.cpp \
    src/myqq/loop.cpp \
    src/myqq/group.cpp \
    src/myqq/debug.cpp \
    src/myqq/crc32.cpp \
    src/myqq/config.cpp \
    src/myqq/qqconn.cpp \
    src/myqq/buddy.cpp \
    main.cpp \
    src/ui/about.cpp \
    src/ui/mainwindow.cpp \
    src/ui/login.cpp \
    src/ui/qclickedlabel.cpp \
    src/ui/buddychat.cpp \
    src/db.cpp \
    src/qtq_config.cpp \
    src/dbhelper.cpp \
    src/ui/verifycodedialog.cpp \
    src/myqq/PackageRecvThread.cpp
FORMS += src/ui/mainwindow.ui \
    src/ui/about.ui \
    src/ui/login.ui \
    src/ui/buddychat.ui \
    src/ui/verifycodedialog.ui
RESOURCES += \
    qtq.qrc
DEFINES += QT_NO_STATUSBAR \
    QT_NO_DOCKWIDGET \
    QT_NO_TOOLBAR
symbian:LIBS += -llibpthread \
    libc \
    libstdcpp \
    estlib
win32:LIBS += -lwsock32 \
    -lpthread \
    -liconv
symbian: {
    VERSION=1.0.12
    ICON = qtq.svg
    MOC_DIR = tmp
    LIBS += -lcone \
        -leikcore \
        -lavkon
    TARGET.UID3 = 0xE8162b05
    TARGET.EPOCSTACKSIZE = 0x14000
    TARGET.EPOCHEAPSIZE = "0x020000 0x2000000"
    TARGET.CAPABILITY = "LocalServices NetworkServices ReadUserData WriteUserData"
    addFiles1.sources = ./qtq.rcc
    addFiles1.path = ./
    addFiles2.sources = sound/*
    addFiles2.path = ./sound/
    DEPLOYMENT += addFiles1
    DEPLOYMENT += addFiles2
}

unix:!symbian {
    maemo5 {
        target.path = /opt/usr/bin
    } else {
        target.path = /usr/local/bin
    }
    INSTALLS += target
}
